# Contributor: Krassy Boykinov <kboykinov@teamcentrixx.com>
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=livi
pkgver=0.1.0
pkgrel=0
pkgdesc="A small video player targeting mobile devices"
url="https://gitlab.gnome.org/guidog/livi"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	desktop-file-utils
	gst-plugins-bad-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
checkdepends="appstream-glib"
source="https://gitlab.gnome.org/guidog/livi/-/archive/v$pkgver/livi-v$pkgver.tar.gz
	fix-ld-format-string.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e16d8c1e3f5cda4e1b9281eb308137c2193c4fcf270a06dd5c270049f45c3b153648e6dae8bcbb1dbf65d8b2c239b2735d0232a79f70da322db03b955801cf5f  livi-v0.1.0.tar.gz
5d5cdf5e74528e6d5819688e4eff0362fb9ed300b0e0b73e4b2d81351c603ed6d9b02fed334beb3553b8c383b2c351851a02c31fca7208f6e0bee12387d768e6  fix-ld-format-string.patch
"
